<template>
  <div>
    <el-menu theme="dark" :default-active="$route.path" class="el-menu-demo" mode="horizontal" @select="handleSelect">
      <el-menu-item index="/upload">
        <a href="#/upload">上传文件</a>
      </el-menu-item>
      <el-menu-item index="/banner">
        <a href="#/banner">banner</a>
      </el-menu-item>
      <el-menu-item index="/promotion">
        <a href="#/promotion">餐饮CMS</a>
      </el-menu-item>
      <el-menu-item index="/profile">
        <a href="#/profile">权益CMS</a>
      </el-menu-item>
      <el-menu-item index="/preview">
        <a href="#/preview">微信预览</a>
      </el-menu-item>
      <el-menu-item index="/native">
        <a href="#/native">客户端下载</a>
      </el-menu-item>
      <el-menu-item index="/relative">
        <a href="#/relative">相关地址</a>
      </el-menu-item>
      <el-menu-item class="right-menu" index="9">
        <a href="http://prem2.yaolaivip.com/jenkins" target="_blank">测试jenkins</a>
      </el-menu-item>
      <el-menu-item class="right-menu" index="10">
        <a href="http://elk.yaolaivip.com/jenkins" target="_blank">线上jenkins</a>
      </el-menu-item>
      <el-menu-item class="right-menu" index="11">
        <a href="http://elk.yaolaivip.com/" target="_blank">线上日志</a>
      </el-menu-item>
    </el-menu>
  </div>
</template>
<script>
  export default {
    data () {
      return {
        activeIndex: 'relative'
      }
    },
    methods: {
      handleSelect (key, keyPath) {
        console.log(key, keyPath)
      }
    },
    created () {
    }
  }
</script>
<style scoped>
  .el-menu-item {
    padding: 0;
  }

  a {
    display: block;
    padding: 0 20px;
  }

  .right-menu {
    float: right !important;
  }
</style>
